//
// Created by 86150 on 2021/11/18.
//

#ifndef UNNAMED1_CALLER_H
#define UNNAMED1_CALLER_H
#include <iostream>
#include <winsock2.h>
#include <windows.h>
#include <thread>

class caller
{
	private:
		std::string goal_ip;
		short goal_port;
		SOCKET goal_sock;
		SOCKADDR_IN goal_sock_addr;
		WSADATA wsadata;
		std::string user_name;
		void error(std::string);

	public:
		caller(std::string, std::string, short);
		caller();
		void set(std::string, std::string, short);
		void connect_chatroom_test();
		~caller();
};



#endif //UNNAMED1_CALLER_H
